package com.lemontree.spring3.Aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by lemontree on 2017/7/27.
 */
public class SpringTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
                "com/lemontree/spring3/Aop/AOP.xml");
        Performance audiencePerform = (Performance) applicationContext.getBean("perform");
        audiencePerform.perform();
//        Encoreable encoreable = (Encoreable) audiencePerform;
//        encoreable.doSomething();
    }
}
